# leave these lines alone
.SUFFIXES: .erl .beam .yrl

.erl.beam:
	erlc -W $<

all: compile

compile: ${MODS:%=%.beam} subdirs
	

## run an application from the makefile

server:compile
	cd server; make server
yaws:compile
	cd yaws; make yaws 
subdirs:
	cd lib;			make
	cd server; 	make
	cd yaws; make

# remove all the code

clean:	
	rm -rf *.beam erl_crash.dump
	cd lib;			make clean
	cd server; 	make clean	
	cd yaws; 		make clean	

